package com.example.core.service;

import org.jgroups.Address;
import org.jgroups.JChannel;
import org.jgroups.Message;

public interface JGroupsService {

    public static final String DEFAULT = "default";

    public JChannel getChannel();

    public void startChannel() throws Exception;

    public void stopChannel() throws Exception;

    public void send(Address address, Message message) throws Exception;

    public void broadcast(Object message) throws Exception;
}
